package com.practice.zookeeper.server;

import com.practice.zookeeper.server.zk.IRegistryCenter;
import com.practice.zookeeper.server.zk.RegistryCenterImpl;

/**
 *	模拟集群8081
 */
public class Server_LB_8081_Demo {
	
	public static void main(String[] args) throws Exception {
		RpcService service = new RpcServiceImpl_8081();
		
		IRegistryCenter registryCenter = new RegistryCenterImpl();
		
		RpcServer server = new RpcServer(registryCenter, "127.0.0.1:8081");
		server.bind(service);
		server.publisher();
		System.in.read();
	}

}
